/*
 * Copyright (c) 2018 - 2019. www.vtuzx.com Inc. All Rights Reserved
 */

package com.vtuzx.kingdee.xqc_api.config;

import com.vtuzx.core.db.mongo.config.VtuzxMongoConfig;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.mongodb.core.MongoTemplate;

/**
 * 连接配置(聚水潭数据库)
 */
@Configuration
@ConfigurationProperties(prefix = "vtuzx.data.mongodb.xqc")
public class XqcMongoConfig extends VtuzxMongoConfig {

    @Override
    @Bean(VTUZX_DATA_MONGODB + "xqc")
    public MongoTemplate getMongoTemplate() {
        return super.getMongoTemplate();
    }
}